package cn.iocoder.yudao.module.famous.doctor.controller.app.operator.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 绩效管理-绩效表头
 *
 * @author wyx
 * @since 2021-08-16
 */
@Data
@Schema(description = "管绩效表头 OperatorPerformanceHead对象")
public class OperatorPerformanceHead implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 项目code
     */
    @Schema(description = "项目code")
    @TableField("`key`")
    private String key;

    @Schema(description = "业务名称")
    private String name;

    @Schema(description = "备注")
    private String remake;

    @Schema(description = "状态 0停用 1正常")
    private Integer status;

    @TableLogic
    @Schema(description = "是否删除 1删除 0未")
    private Integer isDel;

    @Schema(description = "审批人id")
    private String approverId;

    @Schema(description = "审批人员名字-手机号")
    private String approverName;

    @Schema(description = "运营商id")
    private Long operatorId;

    @Schema(description = "运营商名")
    private String operatorName;

    @Schema(description = "配图")
    private String img;

    @Schema(description = "模板code")
    private String templateKey;

    @Schema(description = "是否模板 0否 1是")
    private Integer isTemplate;

    @Schema(description = "发布状态 0未发布 1已发布")
    private Integer publishStatus;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime gmtModified;

//    public String getFullImg() {
//        return StringUtils.isEmpty(this.img) ? null : AliCloudProperties.URL_PREFIX + this.img;
//    }
}
